﻿<%@ Page Language="C#" MasterPageFile="~/BackviewWebpage/BackView.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="EhotelSystem.BackviewWebpage.Register" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="backOfficeBody" runat="server">
    <style type="text/css">
    .style1
    {
        width: 521px;
    }
    .style2
    {
    }
    .style3
    {
    }
    .style4
    {
        width: 197px;
    }
    .style6
    {
        width: 160px;
    }
</style>
    <table class="style1">
        <tr>
            <td align="center" class="style2">
                Sign Up</td>
            <td class="style4">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Username :</td>
            <td class="style4">
                <asp:TextBox ID="txtUerName" runat="server" Width="164px"></asp:TextBox>
            </td>
            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Password :</td>
            <td class="style4">
                <asp:TextBox ID="txtPassword" runat="server" Width="166px" 
                    ontextchanged="txtPassword_TextChanged" TextMode="Password"></asp:TextBox>
            </td>
            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Repassword :</td>
            <td class="style4">
                <asp:TextBox ID="txtRePassword" runat="server" Width="166px" TextMode="Password"></asp:TextBox>
            </td>
            <asp:RequiredFieldValidator id="PasswordConfirmRequiredValidator" runat="server"
                                      ControlToValidate="txtRePassword" 
                                      Display="Static" ErrorMessage="Required" />
          <asp:CompareValidator id="PasswordConfirmCompareValidator" runat="server"
                                      ControlToValidate="txtRePassword"
                                      Display="Static" ControlToCompare="txtPassword"
                                      ErrorMessage="ไอ่สาด พิมไม่ตรงกัน " />

            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="style2">
                Mailing Address</td>
            <td class="style4">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="center" class="style4">
                First Name</td>
            <td align="center" class="style6">
                Last Name</td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Your Name :</td>
            <td class="style4">
                <asp:TextBox ID="txtFirstName" runat="server" Width="156px"></asp:TextBox>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtLastName" runat="server" Width="160px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" align="right">
                E-Mail :</td>
            <td class="style3" colspan="2">
                <asp:TextBox ID="txtEmail" runat="server" Width="260px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Position:</td>
            <td class="style4">
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>Hotel&#39;s officer</asp:ListItem>
                    <asp:ListItem>Administrater</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="center" class="style3" colspan="2">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    onclick="btnSubmit_Click" />
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="3">
                <asp:Label ID="lblMessage" runat="server" ></asp:Label>
            </td>
        </tr>
    </table>

</asp:Content>
